package thread;

public class Thread01 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            System.out.println("我是Run方法中的线程"+i);
        }
    }
    //线程是交替执行的
    public static void main(String[] args) {
        Thread01 thread01 = new Thread01();
        thread01.start();
        for (int i = 0; i < 800; i++) {
            System.out.println("我是main方法中的线程"+i);
        }
    }
}
